package org.dromara.vmp.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.vmp.domain.MonitorArea;

/**
 * 监控区域业务对象 wvp_monitor_area
 *
 * @author LSL
 * @date 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MonitorArea.class, reverseConvertGenerate = false)
public class MonitorAreaBo extends BaseEntity {

    /**
     * 区域ID
     */
    @NotNull(message = "区域ID不能为空", groups = {EditGroup.class})
    private Long maId;

    /**
     * 区域名称
     */
    @NotBlank(message = "区域名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String maName;

    /**
     * 小区ID
     */
    @NotNull(message = "小区ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long communityId;

    /**
     * 小区名称
     */
    @NotBlank(message = "小区名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String communityName;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
